package vn.fpt.snake.entity;

public class Settings {
	private int volume;
	private int speed;
	private int sizeOfArray;
	private int dotSize;
	private int width;
	private int height;
	private int dots;
	private int maxNumberHighScore;

	public Settings(){
		
	}
			
	public Settings(int volume, int speed, int sizeOfArray, int width, int height, int dots, int maxNumberHighScore){
		this.volume = volume;
		this.speed = speed;
		this.sizeOfArray = sizeOfArray;
		this.dotSize = height < width ? height / 30 : width / 30;
		this.width = (width / dotSize) * dotSize;
		this.height = (height / dotSize) * dotSize;
		this.dots = dots;
		this.maxNumberHighScore = maxNumberHighScore;
	}
	
	public int getVolume() {
		return volume;
	}
	public void setVolume(int volume) {
		this.volume = volume;
	}
	
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	
	public int getSizeOfArray() {
		return sizeOfArray;
	}

	public void setSizeOfArray(int sizeOfArray) {
		this.sizeOfArray = sizeOfArray;
	}	
	
	public int getDotSize() {
		return dotSize;
	}

	public void setDotSize(int dotSize) {
		this.dotSize = dotSize;
	}
	
	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}
	
	public int getDots() {
		return dots;
	}

	public void setDots(int dots) {
		this.dots = dots;
	}
	
	public int getMaxNumberHighScore() {
		return maxNumberHighScore;
	}

	public void setMaxNumberHighScore(int maxNumberHighScore) {
		this.maxNumberHighScore = maxNumberHighScore;
	}

}
